package org.example;

import java.util.Arrays;
import java.util.List;

/**
 * Gindama On Java Now
 * 2025/7/5 09:26
 * By The Spirit Of MF DOOM
 */

    public class Main {

        public static void main(String[] args) {

            List<String> words = Arrays.asList("hello", "world", "Gindama7", "MY", "code");


            List<String> filteredWords = words.stream()
                    .filter(word -> word.length() > 3)
                    .map(String::toUpperCase)
                    .sorted()
                    .toList();

            filteredWords.forEach(System.out::println);
        }
    }

